package cn.stylefeng.guns.modular.rest.tool;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.service.BasicAreaService;
import cn.stylefeng.guns.modular.basic.service.BasicGoodsService;
import cn.stylefeng.guns.modular.basic.service.BasicPositionService;
import cn.stylefeng.guns.modular.basic.service.BasicWarehouseService;
import cn.stylefeng.guns.modular.rest.aop.UserAop;
import cn.stylefeng.guns.modular.tool.model.params.ToolWorkTaskParam;
import cn.stylefeng.guns.modular.tool.service.ToolStorageStockService;
import cn.stylefeng.guns.modular.tool.service.ToolWorkTaskDetailedService;
import cn.stylefeng.guns.modular.tool.service.ToolWorkTaskService;
import cn.stylefeng.roses.core.base.controller.BaseController;

/**
 * 云仓 补货任务
 */
@Controller
@RequestMapping("/rest/toolWorkTask")
public class restToolWorkTaskController extends BaseController{

    @Autowired
    private ToolStorageStockService toolStorageStockService;
    @Autowired
    private BasicPositionService basicPositionService;
    @Autowired
    private BasicAreaService basicAreaService;
    @Autowired
    private BasicWarehouseService basicWarehouseService;
    @Autowired
    private BasicGoodsService basicGoodsService;
    @Autowired
    private ToolWorkTaskDetailedService toolWorkTaskDetailedService;
    @Autowired
    private ToolWorkTaskService toolWorkTaskService;
    @Autowired
    private UserAop userAop;
    
    /**
     * 查询列表
     * @author zhucx
     * @Date 2023-04-20
     */
    @ResponseBody
    @RequestMapping("/list")
    public LayuiPageInfo list(ToolWorkTaskParam toolWorkTaskParam,String condition ) {
        return this.toolWorkTaskService.findPageBySpec(toolWorkTaskParam,condition);
    }



}
